package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Categorieid  int64  `gorm:"type:int(11);not null;commit:'关联分类'"`
	Num          string `gorm:"type:varchar(5);not null;commit:'产品编号'"`
	Name         string `gorm:"type:varchar(20);not null;commit:'产品名称'"`
	Categorienum string `gorm:"type:varchar(20);not null;commit:'分类参数'"`
	Productprice int64  `gorm:"type:int(11);not null;commit:'市场价格'"`
	Costprice    int64  `gorm:"type:int(11);not null;commit:'成本价格'"`
	Image        string `gorm:"type:varchar(200);not null;commit:'图片'"`
}
